package com.roncoo.course.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roncoo.course.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roncoo.course.entity.EduSubject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wdf
 * @since 2021-03-26
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    List<EduCourse> findByTime();

    IPage<EduCourse>  findAllById(Page page, @Param("course") EduCourse eduCourse, @Param("subject") EduSubject eduSubject);

}
